package com.itheima.demo01Lambda;

public class Demo06LambdaComtion {
    public static void main(String[] args) {
        //方法的参数或局部变量类型必须为接口才能使用Lambda
        test(() -> {
        });
    }

    public static void test(Student a) {

    }
}

interface Student {
    public abstract void eat();
}
